<template>
  <div class="visitor">
    <h4>最近访客</h4>
    <ul>
      <li><p>cherry</p></li>
    </ul>
  </div>
</template>

<script>
export default {
  name: "Visitor",
};
</script>

<style lang="less" scoped>
.visitor {
  width: 100%;
  background-color: #fff;
  padding: 20px;
  margin-top: 20px;
  font-family: "Quicksand";
  box-shadow: 0 0 4px #ddd;
  box-sizing: border-box;
  h4 {
    line-height: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8e9e7;
    color: #383937;
    font-size: 16px;
    font-weight: bold;
  }
  ul {
    display: flex;
    margin-top: 20px;
    flex-wrap: wrap;
    li {
      position: relative;
      width: 50px;
      height: 50px;
      margin-right: 10px;
      margin-bottom: 10px;
      background: url("../../../assets/logo.png") center/cover no-repeat;
      &:nth-child(4n) {
        margin-right: 0;
      }
      p {
        overflow: hidden;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 16px;
        background-color: rgba(0, 0, 0, 0.5);
        color: #fff;
        text-align: center;
        line-height: 16px;
        font-size: 12px;
        white-space: nowrap;
        text-overflow: ellipsis;
      }
    }
  }
}
</style>